<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-category_id" class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select name="row[category_id]" data-rule="required" id="c-category_id" class="form-control">
                <option value="">分类</option>
                {foreach name="categorys" item="vo"}
                    <option value="{$vo.id}" {eq name="$vo.id" value="$row.category_id"}selected{/eq}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-must" class="control-label col-xs-12 col-sm-2">{:__('Must')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-must" class="form-control selectpicker" name="row[must]">
                {foreach name="mustList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.must"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-values" class="control-label col-xs-12 col-sm-2">{:__('Values')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-values" class="form-control " rows="5" name="row[values]" cols="50">{$row.values}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-search_show" class="control-label col-xs-12 col-sm-2">{:__('Search_show')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-search_show" class="form-control selectpicker" name="row[search_show]">
                {foreach name="searchShowList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.search_show"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-sort" class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
